package com.darker.yygh.service;

import com.atguigu.yygh.model.hosp.Schedule;
import com.atguigu.yygh.vo.hosp.ScheduleOrderVo;
import com.atguigu.yygh.vo.hosp.ScheduleQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ScheduleService  {
    void save(Map<String, Object> map);

    Page<Schedule> findSchedule(Integer page, Integer litmit, ScheduleQueryVo scheduleQueryVo);

    void removeSchedule(String hoscode, String hosScheduleId);

    Map<String, Object> getScheduleRule(long page, long limit, String hoscode, String depecode);
    //根据医院编号 科室编号 工作日期查询排班详细信息
    List<Schedule> getScheduleDetail(String hoscode, String depecode, String workDate);
    //获取可预约排班数据
    Map<String, Object>  getBookingScheduleRule(Integer page, Integer limit, String hoscode, String depcode);
    //根据排班id获取排班数据
    Schedule getScheduleRuleId(String scheduleId);
    //根据排班Id获取预约下单数据
    ScheduleOrderVo getScheduleOrderVo(String scheduleId);

    //更新排班数据
     void update(Schedule schedule);

    Schedule getScheduleId(String scheduleId);
}
